<?php



namespace app\stores\logic\order;



class OrderLogic{

    

    private static $app;



    public static function init($shopId){

        self::$app = [

            'normal'=> new OrderNormalLogic($shopId),//普通商品订单

            'pre_sale'=> new OrderPreSaleLogic($shopId),//预售商品订单

            'flash_sale'=> new OrderFlashSaleLogic($shopId) ,//秒杀商品订单

            'pin_tuan'=> new OrderPinTuanLogic($shopId),//拼团商品订单

            'store'=> new OrderStoreLogic($shopId),//囤货商品订单

            'snap_up'=>new OrderSnapUpLogic($shopId), //抢购项目订单

            'once_card'=>new OrderOnceCardLogic($shopId), //次卡项目订单

            'set_meal'=> new OrderSetMealLogic($shopId),//套餐订单

            'pay_order'=> new OrderPayMemberLogic($shopId),//付费会员订单

            'cash'=> new OrderCashLogic($shopId),//普通商品订单
        ];

        return self::$app;

    }



}